
local close = ...

local rpc = require 'rpc'
local interface = require 'interface'
local socket = require 'socket'

--local IP = "localhost"
local IP = require"servip"
local port = 55000

local p = rpc.createproxy( IP, port, interface, close=='close')

local t1 = socket.gettime()
for i=1, 50 do
  --print("Client - Interacao " .. i)
  local sum = p.foo( 1.0, 2.0, 3.0 )
  p.boo()
  p.bar( "12345678" )
end
print((socket.gettime()-t1)/50)
